package com.xcdh.auth.controller;

import com.xcdh.client.UserClient;
import com.xcdh.domain.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private UserClient userClient ;

    @GetMapping("/findUserByUsername/{username}")
    public R findUserByUsername(@PathVariable String username){
        return userClient.findUserByName(username) ;
    }
}
